package com.xjoyt.pay.master.interfaces;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.xjoyt.pay.dto.ExecuteResult;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.master.params.MerchantPageParam;
import com.xjoyt.pay.master.po.MerchantRate;
import com.xjoyt.pay.master.vo.MerchantRateMap;

public interface MerchantRateContract {

	@RequestMapping(value = "loadPageRate", method = RequestMethod.POST)
	PageResult<MerchantRateMap> loadPageRate(PageParam<MerchantPageParam> param);

	@RequestMapping(value = "save", method = RequestMethod.POST)
	ExecuteResult<MerchantRate> save(MerchantRate param);

	@RequestMapping(value = "saveRate", method = RequestMethod.POST)
	ExecuteResult<?> saveRate(MerchantRateMap param);

	@RequestMapping(value = "update", method = RequestMethod.POST)
	ExecuteResult<?> update(com.xjoyt.pay.merchant.register.po.MerchantRate param);

	@RequestMapping(value = "saveRateForAll", method = RequestMethod.POST)
	ExecuteResult<?> saveRateForAll(MerchantRateMap param);

}
